package com.fqcar.fqdf.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by lvsidong on 2017/10/23.
 *
 * 充电桩详情
 */

public class StubDetailEntity implements Parcelable{

    public String address;
    public Double lat;
    public Double lng;
    public int state;
    public String stateDesc;
    public int stubId;
    public String title;
    public String distance;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateDesc() {
        return stateDesc;
    }

    public void setStateDesc(String stateDesc) {
        this.stateDesc = stateDesc;
    }

    public int getStubId() {
        return stubId;
    }

    public void setStubId(int stubId) {
        this.stubId = stubId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public static Creator<StubDetailEntity> getCREATOR() {
        return CREATOR;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.address);
        dest.writeValue(this.lat);
        dest.writeValue(this.lng);
        dest.writeInt(this.state);
        dest.writeString(this.stateDesc);
        dest.writeInt(this.stubId);
        dest.writeString(this.title);
        dest.writeString(this.distance);
    }

    public StubDetailEntity() {
    }

    protected StubDetailEntity(Parcel in) {
        this.address = in.readString();
        this.lat = (Double) in.readValue(Double.class.getClassLoader());
        this.lng = (Double) in.readValue(Double.class.getClassLoader());
        this.state = in.readInt();
        this.stateDesc = in.readString();
        this.stubId = in.readInt();
        this.title = in.readString();
        this.distance = in.readString();
    }

    public static final Creator<StubDetailEntity> CREATOR = new Creator<StubDetailEntity>() {
        @Override
        public StubDetailEntity createFromParcel(Parcel source) {
            return new StubDetailEntity(source);
        }

        @Override
        public StubDetailEntity[] newArray(int size) {
            return new StubDetailEntity[size];
        }
    };
}
